
define(['app'], function(app) {
	
	app.register.service('NavigationServices',function(httpServices){
		
		//类目导航模块
		var navigation = {};
		
		//分页查询指定层级的类目列表
		navigation.list4client = function(_params, _successCallback, _errorCallback) {
			httpServices.ajax(_params, _successCallback, _errorCallback, 'get', '/eimp/channelmgr/navigation/list4client');
		}
		
		//获取所有类目
		navigation.listAll = function(_params, _successCallback, _errorCallback) {
			httpServices.ajax(_params, _successCallback, _errorCallback, 'get', '/eimp/channelmgr/navigation/listAll');
		}
	
		return {
			navigation : navigation
		}
		
	});
	
});